<script setup>
// 可以添加一些交互逻辑，如社交媒体链接跳转等
</script>

<template>
  <footer class="footer">
    <div class="footer-content">
      <div class="footer-section brand-section">
        <div class="logo-container">
          <!--<img src="/logo.png" alt="食尚先锋" class="footer-logo" />-->
          <h3>食尚先锋</h3>
        </div>
        <p>为您提供最佳用餐体验</p>
        <div class="social-icons">
          <a href="#" class="social-icon"><i class="fab fa-weixin"></i></a>
          <a href="#" class="social-icon"><i class="fab fa-weibo"></i></a>
          <a href="#" class="social-icon"><i class="fab fa-qq"></i></a>
        </div>
      </div>
      
      <div class="footer-section links-section">
        <h4>快速链接</h4>
        <ul class="footer-links">
          <li><router-link to="/home">首页</router-link></li>
          <li><router-link to="/home/products">商品中心</router-link></li>
          <li><router-link to="/home/orders">我的订单</router-link></li>
          <li><router-link to="/about">关于我们</router-link></li>
        </ul>
      </div>
      
      <div class="footer-section contact-section">
        <h4>联系我们</h4>
        <div class="contact-info">
          <p><i class="fas fa-phone"></i> 191-4251-5795</p>
          <p><i class="fas fa-envelope"></i> 335539054@qq.com</p>
          <p><i class="fas fa-map-marker-alt"></i> 北京市朝阳区123号</p>
          <p><i class="fas fa-clock"></i> 周一至周日 9:00-22:00</p>
        </div>
      </div>
    </div>
    
    <div class="footer-divider"></div>
    
    <div class="footer-bottom">
      <p>© 2025 食尚先锋 - 版权所有</p>
      <div class="footer-bottom-links">
        <a href="#">隐私政策</a>
        <a href="#">使用条款</a>
        <a href="#">Cookie政策</a>
      </div>
    </div>
  </footer>
</template>

<style scoped>
.footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  margin: 0;
  padding: 0;
  width: 100%;
  position: relative;
  z-index: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 50px 20px 30px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin-bottom: 30px;
  padding: 0 15px;
}

.brand-section {
  flex: 1.5;
}

.logo-container {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.footer-logo {
  height: 40px;
  margin-right: 10px;
}

.footer-section h3 {
  font-size: 22px;
  margin: 0;
  color: #ff8e53;
}

.footer-section h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #ff8e53;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: #ff6b6b;
}

.footer-section p {
  margin-bottom: 15px;
  color: #bdc3c7;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links li a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
  display: inline-block;
}

.footer-links li a:hover {
  color: #ff6b6b;
  transform: translateX(5px);
}

.social-icons {
  display: flex;
  margin-top: 20px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  margin-right: 12px;
  transition: all 0.3s;
}

.social-icon i {
  font-size: 18px;
  color: #ecf0f1;
}

.social-icon:hover {
  background-color: #ff6b6b;
  transform: translateY(-3px);
}

.contact-info p {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-info i {
  margin-right: 15px;
  color: #ff8e53;
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.subscribe-form {
  display: flex;
  margin-top: 15px;
}

.subscribe-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 4px 0 0 4px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ecf0f1;
  outline: none;
}

.subscribe-form input::placeholder {
  color: #bdc3c7;
}

.subscribe-form button {
  padding: 12px 20px;
  border: none;
  border-radius: 0 4px 4px 0;
  background-color: #ff6b6b;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

.subscribe-form button:hover {
  background-color: #ff5252;
}

.footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 0 20px;
}

.footer-bottom {
  background-color: #1a252f;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom-links a:hover {
  color: #ff6b6b;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    padding: 30px 15px;
  }

  .footer-section {
    margin-bottom: 30px;
    min-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .subscribe-form input {
    border-radius: 4px;
    margin-bottom: 10px;
  }

  .subscribe-form button {
    border-radius: 4px;
    width: 100%;
  }
}
</style>